/**
 * author:wrb
 * 说明：
 *  2019年10月17日下午1:55:10
 */
package com.future.util;

import java.util.Date;

/** 说明：把数据缓存到Session里
 * @author wrb
 * 2019年10月17日下午1:55:10
 */
public class SessionCache {

	private Integer id;
	private Integer deptId;
	private Integer roleId;
	private String loginName;
	private String userName;
	private Integer phone;
	private Date loginTime;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getDeptId() {
		return deptId;
	}
	public void setDeptId(Integer deptId) {
		this.deptId = deptId;
	}
	public Integer getRoleId() {
		return roleId;
	}
	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public Date getLoginTime() {
		return loginTime;
	}
	
	public Integer getPhone() {
		return phone;
	}
	public void setPhone(Integer phone) {
		this.phone = phone;
	}
	public void setLoginTime(Date loginTime) {
		if(loginTime==null){
			loginTime = new Date();
		}
		this.loginTime = loginTime;
	}
	
}
